package com.zrrd.demo01;

/**
 * @author WanJl
 * @version 1.0
 * @title Calculator
 * @description 计算器类
 * @create 2024/3/17
 */
public class Calculator {

    public int add(int a, int b){
        return a+b;
    }

    public int subtract(int a, int b){
        return a-b;
    }

    public static void main(String[] args) {
        Calculator c = new Calculator();
        int n1 = c.add(15, 3);

        int n2 = c.subtract(6, 2);

        System.out.println(n1);

        System.out.println(n2);

    }

}
